package com.example.demo;

import com.example.spi.IShout;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.ServiceLoader;

@SpringBootApplication
@ComponentScan(basePackages = { "com.example.*" })
@EnableTransactionManagement
public class DemoApplication {

	public static void main(String[] args) {
//		ServiceLoader<IShout> shouts = ServiceLoader.load(IShout.class);
//		for (IShout shout : shouts) {
//			shout.shout();
//		}
		SpringApplication.run(DemoApplication.class, args);
	}


}
